package com.indusfo.spc.service;

import com.indusfo.spc.pojo.BatchRepair;
import com.indusfo.spc.vo.JSONObject;

import java.util.List;

/**
 * @Author liub
 * @Date 2019/12/6 8:50
 * @Version 1.0
 */
public interface BatchRepairService {

    /**
     * 查询
     */
    JSONObject queryBatchRepair(BatchRepair batchRepair);

    /**
     * 新增
     */
    JSONObject insertBatchRepair(BatchRepair batchRepair);

    /**
     * 修改
     */
    JSONObject updateBatchRepair(BatchRepair batchRepair);

    /**
     * 启停
     */
    JSONObject deleteBatchRepair(List<Integer> batchRepairIds, Integer dataState);

    /**
     * 批次流程维修工序
     */
    JSONObject saveBatchRepairFlow(BatchRepair batchRepair);

    /**
     * 批次流程维修采集参数
     */
    JSONObject saveBatchRepairDete(BatchRepair batchRepair);

    /**
     * 级联删除工序流程关联的工位、采集参数、关键物料、不良现象
     */
    JSONObject deleteCascadeBatchRepair(List<Integer> batchRepairIds, Integer dataState);
}
